{% extends "base.html" %}
{% load authorization_tags %}
{% block content %}
    {{ block.super }}
    <h3> Edit Environment {{ pt.name }}</h3>
    <form class="form-horizontal" action="{% url 'edit_dev_env' de.id %}" method="post">{% csrf_token %}
        {% include "dojo/form_fields.html" with form=form1 %}
        {{ form2 }}
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input class="btn btn-primary" name="edit_dev_env" type="submit" value="Submit"/>
                {% if "dojo.delete_development_environment"|has_configuration_permission:request %}
                <input class="btn btn-danger" name="delete_dev_env" type="submit" value="Delete"/>
                {% endif %}
            </div>
        </div>
    </form>
{% endblock %}
